
<div class="col-md-12">
	<div class="box margin-middle max-width">
		<!-- BOX-BODY -->
		<div class="box-body">
			<!-- 列表编辑-->
			<div class="row">
					<div class="col-xs-12 nopadding-horizontal mt20">
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">姓名：</span>
								<div class="input-group-content">{{curCustomer.name}}</div>
		           </div>
						</div>
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">房间床位号：</span>
								<div class="input-group-content">{{curCustomer.bed.allBedName}}</div>
							</div>
						</div>
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">账户余额：</span>
								<div class="input-group-content">{{curCustomer.accountMoney}}元</div>
							</div>
						</div>
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">保证金余额：</span>
								<div class="input-group-content">{{curCustomer.actualDeposit}}元</div>
							</div>
						</div>
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">收费标准：</span>
								<div class="input-group-content">
                  {{curCustomer.actualPrice}}
                  {{#if (eq curCustomer.chargeType.typecode "chargeTypeY")}}
                    (元/月)
                  {{else}}
                    (元/天)
                  {{/if}}
                </div>
							</div>
						</div>

					</div>
			</div>

      <div class="col-sm-12 nopadding-left top20">
        <div class="bottom12">
          <ul class="nav nav-tabs">
            <li id='chooseTabOne' class="active"><a href="#box_tab1" data-toggle="tab" {{action 'chooseTab' "chooseTabOne"}}>
               <span class="hidden-inline-mobile">充值记录</span></a>
            </li>
            <li id='chooseTabTwo' class=""><a href="#box_tab2" data-toggle="tab" {{action 'chooseTab' "chooseTabTwo"}} >
             <span class="hidden-inline-mobile">历史账单</span></a>
            </li>
          </ul>
            <div class="clear"></div>
        </div>
      </div>

      {{#if (eq chooseTabFlag "chooseTabOne")}}
        <div id="datatable1_wrapper" class="dataTables_wrapper form-inline" role="grid">
          <table id="datatable1" cellpadding="0" cellspacing="0" border="0"  class="datatable table table-bordered table-hover dataTable mt15" aria-describedby="datatable1_info">
            <thead>
              <tr role="row">
                <th rowspan="1" colspan="1" width="">充值日期</th>
                <th rowspan="1" colspan="1" width="">充值金额(元)</th>
                <th rowspan="1" colspan="1" width="">账户类型</th>
                <th rowspan="1" colspan="1" width="">操作人</th>
                <th rowspan="1" colspan="1" width="">审核人</th>
              </tr>
            </thead>
            {{#if rechargeList}}
              <tbody role="alert" aria-live="polite" aria-relevant="all" class="">
                {{#each rechargeList as |recharge|}}
                {{log "recharge item" recharge}}
                <tr class="gradeA odd" style="cursor:default;">
                  <td class=" ellipsis ">{{recharge.createDateString}}</td>
                  <td class=" ellipsis ">{{recharge.money}}</td>
                  <td class=" ellipsis ">{{recharge.rechargeAccount.type.typename}}</td>
                  <td class=" ellipsis ">{{{recharge.createUser.name}}}</td>
                  <td class=" ellipsis ">{{{recharge.operateUser.name}}}</td>
                </tr>
                {{/each}}
              </tbody>
            {{else}}
            {{/if}}
          </table>
            {{#if rechargeList }}
                {{page-numbers content=rechargeList showFL=true numPagesToShow=3}}
            {{else}}
                <h1 class="col-sm-12 center unTask"></h1>
            {{/if}}
          </div>
        {{else}}
          <div id="datatable1_wrapper" class="dataTables_wrapper form-inline" role="grid">
            <table id="datatable1" cellpadding="0" cellspacing="0" border="0"  class="datatable table table-bordered table-hover dataTable mt15" aria-describedby="datatable1_info">
              <thead>
                <tr role="row">
                  <th rowspan="1" colspan="1" width="">账单时间</th>
                  <th rowspan="1" colspan="1" width="">账单金额(元/月)</th>
                  <th rowspan="1" colspan="1" width="">结算类别</th>
                  <th rowspan="1" colspan="1" width="">对应服务</th>
                  <th rowspan="1" colspan="1" width="">操作人</th>
                  <th rowspan="1" colspan="1" width="">审核人</th>
                </tr>
              </thead>
              {{#if customerbillList}}
                <tbody role="alert" aria-live="polite" aria-relevant="all" class="">
                  {{#each customerbillList as |bill|}}
                  <tr style="cursor:default;">
                    {{#if (eq bill.billType.typecode "chargeTypeD")}}
                    <td class="ellipsis">{{bill.dayBillTimeStr}}</td>
                    {{else if (eq bill.billType.typecode "billType2")}}
                    <td class="ellipsis">{{bill.showTime}}</td>
                    {{else}}
                    <td class="ellipsis"></td>
                    {{/if}}
                    <td class="ellipsis">{{bill.total}}</td>
                    <td class="ellipsis">{{bill.billType.typename}}</td>
                    <td class="ellipsis">{{bill.billStatType.typename}}</td>
                    <td class="ellipsis">{{bill.lastUpdateUser.name}}</td>
                    <td class="ellipsis">{{bill.operateUser.name}}</td>
                  </tr>
                  {{/each}}
                </tbody>
              {{else}}
              {{/if}}
            </table>
              {{#if customerbillList }}
                  {{page-numbers content=customerbillList showFL=true numPagesToShow=3}}
              {{else}}
                  <h1 class="col-sm-12 center unTask"></h1>
              {{/if}}
            </div>
          {{/if}}

		</div>
		<!-- /BOX-BODY -->
	</div>
</div>
